package com.huazi.user.registration.service.Imp;

import com.huazi.user.registration.dao.Docator_Info;
import com.huazi.user.registration.dao.imp.Docator_Info_Impl;
import com.huazi.user.registration.entity.Doctor_Info;
import com.huazi.user.registration.service.DoctorInfoServicei;
import com.huazi.util.SessionUtil;

import java.util.List;

public class DoctorInfoservice implements DoctorInfoServicei {
    Docator_Info info = new Docator_Info_Impl();

    @Override
    public List<Doctor_Info> loockInfo(String type) {

      return SessionUtil.getSession().getMapper(Docator_Info.class).findByType(type);

    }

    @Override
    public Doctor_Info FindByNames(String name) {
        Doctor_Info names = SessionUtil.getSession().getMapper(Docator_Info.class).findByName(name);
        return names;
    }
}
